<?php

session_start();

include_once('config.php');

$id = $_POST['id'];
$title = $_POST['title'];
$desc = $_POST['desc'];
$price = $_POST['price'];
$discount = $_POST['discount'];

$sql = "UPDATE `product` SET title='$title', descreption='$desc', price='$price', active=1,
        discount='$discount' WHERE id=$id";
$result = mysql_query($sql);
echo 'tamam';
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
?>
